3.64 \(\int \frac{a d+a e x+(b d+a f) x^2+b e x^3+(c d+b f) x^4+c e x^5+c f x^6}{\left (a+b x^2+c x^4\right )^2} \, dx\)

Optimal. Leaf size=211 \[ \frac{\left (\frac{2 c d-b f}{\sqrt{b^2-4 a c}}+f\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} \sqrt{c} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\left (f-\frac{2 c d-b f}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} \sqrt{c} \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{e \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}} \]

[Out]

((f + (2*c*d - b*f)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[
b^2 - 4*a*c]]])/(Sqrt[2]*Sqrt[c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((f - (2*c*d - b
*f)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/
(Sqrt[2]*Sqrt[c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]) - (e*ArcTanh[(b + 2*c*x^2)/Sqrt[b^
2 - 4*a*c]])/Sqrt[b^2 - 4*a*c]

_______________________________________________________________________________________

Rubi [A]  time = 0.652468, antiderivative size = 211, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 8, integrand size = 63, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.127 \[ \frac{\left (\frac{2 c d-b f}{\sqrt{b^2-4 a c}}+f\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} \sqrt{c} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\left (f-\frac{2 c d-b f}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} \sqrt{c} \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{e \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}} \]

Antiderivative was successfully verified.

[In]  Int[(a*d + a*e*x + (b*d + a*f)*x^2 + b*e*x^3 + (c*d + b*f)*x^4 + c*e*x^5 + c*f*x^6)/(a + b*x^2 + c*x^4)^2,x]

[Out]

((f + (2*c*d - b*f)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[
b^2 - 4*a*c]]])/(Sqrt[2]*Sqrt[c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((f - (2*c*d - b
*f)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/
(Sqrt[2]*Sqrt[c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]) - (e*ArcTanh[(b + 2*c*x^2)/Sqrt[b^
2 - 4*a*c]])/Sqrt[b^2 - 4*a*c]

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 72.6825, size = 221, normalized size = 1.05 \[ - \frac{e \operatorname{atanh}{\left (\frac{b + 2 c x^{2}}{\sqrt{- 4 a c + b^{2}}} \right )}}{\sqrt{- 4 a c + b^{2}}} + \frac{\sqrt{2} \left (b f - 2 c d + f \sqrt{- 4 a c + b^{2}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b + \sqrt{- 4 a c + b^{2}}}} \right )}}{2 \sqrt{c} \sqrt{b + \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} - \frac{\sqrt{2} \left (b f - 2 c d - f \sqrt{- 4 a c + b^{2}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b - \sqrt{- 4 a c + b^{2}}}} \right )}}{2 \sqrt{c} \sqrt{b - \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((a*d+a*e*x+(a*f+b*d)*x**2+b*e*x**3+(b*f+c*d)*x**4+c*e*x**5+c*f*x**6)/(c*x**4+b*x**2+a)**2,x)

[Out]

-e*atanh((b + 2*c*x**2)/sqrt(-4*a*c + b**2))/sqrt(-4*a*c + b**2) + sqrt(2)*(b*f
- 2*c*d + f*sqrt(-4*a*c + b**2))*atan(sqrt(2)*sqrt(c)*x/sqrt(b + sqrt(-4*a*c + b
**2)))/(2*sqrt(c)*sqrt(b + sqrt(-4*a*c + b**2))*sqrt(-4*a*c + b**2)) - sqrt(2)*(
b*f - 2*c*d - f*sqrt(-4*a*c + b**2))*atan(sqrt(2)*sqrt(c)*x/sqrt(b - sqrt(-4*a*c
 + b**2)))/(2*sqrt(c)*sqrt(b - sqrt(-4*a*c + b**2))*sqrt(-4*a*c + b**2))

_______________________________________________________________________________________

Mathematica [A]  time = 0.466139, size = 234, normalized size = 1.11 \[ \frac{\frac{\sqrt{2} \left (f \left (\sqrt{b^2-4 a c}-b\right )+2 c d\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{c} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{2} \left (f \left (\sqrt{b^2-4 a c}+b\right )-2 c d\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{c} \sqrt{\sqrt{b^2-4 a c}+b}}+e \log \left (\sqrt{b^2-4 a c}-b-2 c x^2\right )-e \log \left (\sqrt{b^2-4 a c}+b+2 c x^2\right )}{2 \sqrt{b^2-4 a c}} \]

Antiderivative was successfully verified.

[In]  Integrate[(a*d + a*e*x + (b*d + a*f)*x^2 + b*e*x^3 + (c*d + b*f)*x^4 + c*e*x^5 + c*f*x^6)/(a + b*x^2 + c*x^4)^2,x]

[Out]

((Sqrt[2]*(2*c*d + (-b + Sqrt[b^2 - 4*a*c])*f)*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b
 - Sqrt[b^2 - 4*a*c]]])/(Sqrt[c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + (Sqrt[2]*(-2*c*d
 + (b + Sqrt[b^2 - 4*a*c])*f)*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a
*c]]])/(Sqrt[c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]) + e*Log[-b + Sqrt[b^2 - 4*a*c] - 2*
c*x^2] - e*Log[b + Sqrt[b^2 - 4*a*c] + 2*c*x^2])/(2*Sqrt[b^2 - 4*a*c])

_______________________________________________________________________________________

Maple [B]  time = 0.004, size = 616, normalized size = 2.9 \[{\frac{e}{8\,ac-2\,{b}^{2}}\sqrt{-4\,ac+{b}^{2}}\ln \left ( 2\,c{x}^{2}+\sqrt{-4\,ac+{b}^{2}}+b \right ) }+2\,{\frac{c\sqrt{2}fa}{ \left ( 4\,ac-{b}^{2} \right ) \sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}\arctan \left ({\frac{cx\sqrt{2}}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}} \right ) }-{\frac{\sqrt{2}f{b}^{2}}{8\,ac-2\,{b}^{2}}\arctan \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}-{\frac{b\sqrt{2}f}{8\,ac-2\,{b}^{2}}\sqrt{-4\,ac+{b}^{2}}\arctan \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}+{\frac{c\sqrt{2}d}{4\,ac-{b}^{2}}\sqrt{-4\,ac+{b}^{2}}\arctan \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{ \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}-{\frac{e}{8\,ac-2\,{b}^{2}}\sqrt{-4\,ac+{b}^{2}}\ln \left ( -2\,c{x}^{2}+\sqrt{-4\,ac+{b}^{2}}-b \right ) }-2\,{\frac{c\sqrt{2}fa}{ \left ( 4\,ac-{b}^{2} \right ) \sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}{\it Artanh} \left ({\frac{cx\sqrt{2}}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}} \right ) }+{\frac{\sqrt{2}f{b}^{2}}{8\,ac-2\,{b}^{2}}{\it Artanh} \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}-{\frac{b\sqrt{2}f}{8\,ac-2\,{b}^{2}}\sqrt{-4\,ac+{b}^{2}}{\it Artanh} \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}}+{\frac{c\sqrt{2}d}{4\,ac-{b}^{2}}\sqrt{-4\,ac+{b}^{2}}{\it Artanh} \left ({cx\sqrt{2}{\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \right ){\frac{1}{\sqrt{ \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) c}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((a*d+a*e*x+(a*f+b*d)*x^2+b*e*x^3+(b*f+c*d)*x^4+c*e*x^5+c*f*x^6)/(c*x^4+b*x^2+a)^2,x)

[Out]

1/2*(-4*a*c+b^2)^(1/2)/(4*a*c-b^2)*e*ln(2*c*x^2+(-4*a*c+b^2)^(1/2)+b)+2*c/(4*a*c
-b^2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^
2)^(1/2))*c)^(1/2))*f*a-1/2/(4*a*c-b^2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)
*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*f*b^2-1/2*(-4*a*c+b^2)^(1/
2)/(4*a*c-b^2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(
-4*a*c+b^2)^(1/2))*c)^(1/2))*b*f+c*(-4*a*c+b^2)^(1/2)/(4*a*c-b^2)*2^(1/2)/((b+(-
4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*
d-1/2*(-4*a*c+b^2)^(1/2)/(4*a*c-b^2)*e*ln(-2*c*x^2+(-4*a*c+b^2)^(1/2)-b)-2*c/(4*
a*c-b^2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*
a*c+b^2)^(1/2))*c)^(1/2))*f*a+1/2/(4*a*c-b^2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c
)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*f*b^2-1/2*(-4*a*c
+b^2)^(1/2)/(4*a*c-b^2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^
(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b*f+c*(-4*a*c+b^2)^(1/2)/(4*a*c-b^2)*2^
(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1
/2))*c)^(1/2))*d

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{c f x^{6} + c e x^{5} + b e x^{3} +{\left (c d + b f\right )} x^{4} + a e x +{\left (b d + a f\right )} x^{2} + a d}{{\left (c x^{4} + b x^{2} + a\right )}^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*f*x^6 + c*e*x^5 + b*e*x^3 + (c*d + b*f)*x^4 + a*e*x + (b*d + a*f)*x^2 + a*d)/(c*x^4 + b*x^2 + a)^2,x, algorithm="maxima")

[Out]

integrate((c*f*x^6 + c*e*x^5 + b*e*x^3 + (c*d + b*f)*x^4 + a*e*x + (b*d + a*f)*x
^2 + a*d)/(c*x^4 + b*x^2 + a)^2, x)

_______________________________________________________________________________________

Fricas [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*f*x^6 + c*e*x^5 + b*e*x^3 + (c*d + b*f)*x^4 + a*e*x + (b*d + a*f)*x^2 + a*d)/(c*x^4 + b*x^2 + a)^2,x, algorithm="fricas")

[Out]

Exception raised: NotImplementedError

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((a*d+a*e*x+(a*f+b*d)*x**2+b*e*x**3+(b*f+c*d)*x**4+c*e*x**5+c*f*x**6)/(c*x**4+b*x**2+a)**2,x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*f*x^6 + c*e*x^5 + b*e*x^3 + (c*d + b*f)*x^4 + a*e*x + (b*d + a*f)*x^2 + a*d)/(c*x^4 + b*x^2 + a)^2,x, algorithm="giac")

[Out]

Exception raised: TypeError